package com.emcom.gotour.mvc.message;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.MessageSource;

import com.emcom.gotour.utils.LocaleUtils;

public enum NavigationMessage {
	Manage("navigation.manage"),
	Category("navigation.category"),
	Tour("navigation.tour"),
	TourDetail("navigation.tour.detail"),
	InsertTour("navigation.tour.insert"),
	UpdateTour("navigation.tour.update"),
	TourScheduler("navigation.tour.scheduler"),
	UpdateTourScheduler("navigation.tour.scheduler.update"),
	Position("navigation.position"),
	Chinses("menu.chinese"),
	English("menu.english");
	private String message;
	private NavigationMessage(String message) {
		this.message = message;
	}
	public String value(HttpServletRequest request, MessageSource messageSource) {
		return messageSource.getMessage(message, null, LocaleUtils.getLocale(request));
	}
}
